﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户登录DemoPage</title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btnClick").click(function () {
//                var id = $("#txtID").val();
//                var pwd = $("#txtPwd").val();
                $.post("./Serivice/LoginHandler", "", function (DataDemo) {
                    if (DataDemo == "1") {
                        alert("登陆成功！");
                    }
                    else {
                        alert("用户名或密码错误！");
                    }
                });
               // alert("123124");
//                $.get("Serivice/Login.aspx/loginDemo123", '{ strID: id, strPwd: pwd }', function (DataDemo) {
//                    if (DataDemo == "1") {
//                        alert("登陆成功！");
//                    }
//                    else {
//                        alert("用户名或密码错误！");
//                    }
//                }, text);
            })
        })
    </script>
</head>
<body>
    <div>
        <input id="txtID" type="text" />
        <input id="txtPwd" type="text" />
        <input id="btnClick" type="button" name="btnClick" value="登陆" />
    </div>
</body>
</html>
